from django.urls import re_path

from . import views

urlpatterns = [

    re_path(r'^api/v1.0/areas$', views.AreasView.as_view()),
    re_path(r'^api/v1.0/houses$', views.HouseReleaseView.as_view()),
    re_path(r'^api/v1.0/houses/(?P<house_id>[1-9]\d*)/images$', views.GenerateHouseImage.as_view()),
    re_path(r'^api/v1.0/houses/(?P<house_id>[1-9]\d*)$', views.HouseDetailsView.as_view()),
    re_path(r'^api/v1.0/user/houses$', views.MyhouseListView.as_view()),
    # 首页房屋推荐
    re_path(r"^api/v1.0/houses/index$", views.HouseIndexView.as_view()),

]



